package com.moke.module
{
	
	import flash.events.Event;
	
	public class ModuleEvent extends Event
	{
		public static const SET_UP:String = "setup";
		public static const INIT:String = "init";
		public static const SHOW:String = "show";
		public static const HIDE:String = "hide";
		public static const DISPOSE:String = "dispose";
		
		private var _name:String;
		private var _content:*;
		
		public function ModuleEvent(name:String, 
									type:String, 
									content:* = null, 
									bubbles:Boolean=false, 
									cancelable:Boolean=false)
		{
			super(name + "_" + type, bubbles, cancelable);
			_name = name;
			_content = content;
		}
		
		public function get name():String
		{
			return _name;
		}
		
		public function get content():*
		{
			return _content;
		}
	}
}